package com.lvmama.pangolin.mybatis.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.lvmama.pangolin.entity.Menu;
import com.lvmama.pangolin.entity.SysRole;

public interface SysRoleMapper {
    public int insertRole(SysRole item);
    public int updateRole(SysRole item);
    public int deleteRoleMenu(String id);
    public List<SysRole> selectByMap(Map<String,Object> map);
    public SysRole getById(String id);
    void insertRoleMenu(@Param("id")String id, @Param("menuList")List<Menu> menuList);
    /**
	 * 获取所有角色信息
	 * @return
	 */
	public List<SysRole> findAllList();
}
